package org.lds.scheduled.job.admin.common.enums;


import org.lds.scheduled.job.common.enums.ErrCodeEnum;

public enum AdminErrorEnum implements ErrCodeEnum {

    APP_USING_IN_APP_INSTANCE("APP_USING_IN_APP_INSTANCE", "应用正在被使用[应用实例]"),
    APP_USING_IN_WORKER("APP_USING_IN_WORKER", "应用正在被使用[worker]"),
    APP_USING_IN_JOB("APP_USING_IN_JOB", "应用正在被使用[任务]"),

    TRIGGER_RULE_USING_IN_JOB("TRIGGER_RULE_USING_IN_JOB", "触发规则正在被使用[任务]"),

    APP_NOT_EXIST("APP_NOT_EXIST", "应用不存在"),

    CONTENT_INVALID("CONTENT_INVALID", "content不合法"),
    ;

    private String code;
    private String message;

    AdminErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
